<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="GaleriaDeFotosOLD.aspx.vb" Inherits="ICLI.GaleriaDeFotos" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="estilo.css" rel="stylesheet" type="text/css" />
</head>
<body topmargin="5">
    <form id="form1" runat="server">
    <div>
        <table id="tbAlbum" runat="server" border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td align="center">
                    <asp:Label ID="Label1" runat="server" CssClass="TextoSubForum" Text="Escolha um Album de Fotos."></asp:Label></td>
            </tr>
            <tr>
                <td align="center" class="linhatitulo">
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:TextBox ID="txtIDAlbum" runat="server" Columns="6" CssClass="CaixaTexto" Visible="False"></asp:TextBox><asp:DataList
                        ID="datalistAlbum" runat="server" CellPadding="4" CellSpacing="4" RepeatColumns="3"
                        Width="90%">
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td width="48">
                                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="select" ImageUrl="~/imagens/Album.gif"
                                            Width="48px" />
                                    </td>
                                    <td align="left">
                                        &nbsp;<asp:Label ID="Label3" runat="server" CssClass="Titulo" Text='<%# eval("Nome") %>'></asp:Label><asp:Label
                                            ID="lblID" runat="server" ForeColor="White" Text='<%# eval("IDAlbum") %>'></asp:Label></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <SelectedItemStyle ForeColor="#E0E0E0" />
                    </asp:DataList></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%" id="tbFotos" runat="server" visible="false">
            <tr>
                <td align="left" colspan="2" style="height: 66px">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td width="48">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/imagens/Album.gif" /></td>
                            <td>
                                &nbsp;<asp:Label ID="lblAlbum" runat="server" CssClass="TextoSubForum"></asp:Label></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 3px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label2" runat="server" CssClass="TextoSubForum" Text="Foto(s) do Album selecionado."></asp:Label></td>
            </tr>
            <tr>
                <td class="linhatitulo" colspan="2">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
    
                    <asp:DataList ID="DataListFotos" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                        Width="90%">
                        <ItemTemplate>
                        <asp:HyperLink ID="hlFoto" runat="server" 
                            Height="100px"                            
                            ImageUrl='<%# "./thumbs.aspx?foto=" & eval("Link") %>'
                            Width="120px"
                            ToolTip='<%# eval("Descricao") %>'
                            NavigateUrl='<%# eval("Link") %>'
                            Target="_blank"
                             >
                            </asp:HyperLink>
                            
                           <%-- <asp:ImageButton 
                            ID="ImageButton2" 
                            runat="server" 
                            CommandName="select" 
                            Height="150px"                                                          
                            ImageUrl='<%# eval("Link") %>' 
                            Width="150px" />--%>
                            
                            <br />
                            <asp:Label ID="Label10" runat="server" CssClass="textolabel" Text='<%# eval("Descricao") %>'></asp:Label><asp:Label
                                ID="lblIDFoto" runat="server" ForeColor="White" Text='<%# eval("IDFoto") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList></td>
            </tr>
            <tr>
                <td align="center" colspan="2" class="linhatitulo">
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="height: 8px">
                    </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="height: 18px">
                    <asp:Button ID="btnLimpar" runat="server" CssClass="botao" Text="Voltar" /></td>
            </tr>
        </table>
    
    </div>
    </form>
    <%=script%>
</body>
</html>
